# coding:utf-8

def isPalindrome(num):
    assert num > 0,"num must gt 0"
    assert isinstance(num,int),"num must int"
    num_str = str(num)
    if num == int(num_str[::-1]):
        print("%d is palindrome" %(num))
    else:
        print("%d is not palindrome" %(num))


def main():
    num = 345543
    num1 = 123456
    isPalindrome(num)
    isPalindrome(num1)

if __name__ == "__main__":
    main()